<?php if(!empty($arrCart)) {?>
                <li class="tit">
                    <ul>
                        <li class="first sp"><p>Sản phẩm</p></li>
                        <li class="sl"><p>Số lượng</p></li>
                        <li class="gi"><p>Giá</p></li>
                        <li class="tt"><p>Thành tiền</p></li>
                    </ul>
                </li>
                <?php $totalMoney = 0;?>
                <?php foreach($arrCart as $item) {?>
                <li class="con">
                    <ul>
                        <li class="pic">
                            <div class="pic-1a1">
                                <a href="<?php echo $item['link'];?>">
                                    <img src="<?php echo $item['image'];?>" alt="<?php echo $item['name'];?>"/>
                                </a>
                            </div>
                        </li>
                        <li class="sp">
                            <p><a href="<?php echo $item['link'];?>"><?php echo $item['name'];?></a></p>
                           
                        </li>
                        <li class="sl">
                            <?php if($edit == true) {?>
                                <input type="hidden" name="rowid" value="<?php echo $item['rowid'];?>" />
                                <input type="text" name="quanlity" value="<?php echo $item['quanlity'];?>" style="width:49px; height:21px; float:left; background:url(<?php echo base_url() ?>templates/images/69x31.png) no-repeat; border:none; padding:5px 10px; margin:6px 10px 0 10px; color:#666; font-size:16px;" />
                                <a class="update_cart" href="<?php echo base_url("cart/update_cart");?>"><img src="<?php echo base_url() ?>templates/images/ref.png" alt="" /></a>
                                <a class="delete_cart" href="<?php echo base_url("cart/delete_cart/{$item['rowid']}");?>"><img src="<?php echo base_url() ?>templates/images/delete.png" alt="" /></a>
                            <?php } else {?>
                                <p><?php echo $item['quanlity'];?></p>
                            <?php }?>
                        </li>
                        <?php if($item['sprice']>0){ ?>
                        <li class="gi"><p><?php echo priceFormat($item['sprice']);?> vnđ</p></li>
                        <li class="tt"><p><?php echo priceFormat($item['sprice']*$item['quanlity']);?> vnđ</p></li>
                        <?php $totalMoney += $item['sprice']*$item['quanlity'];?>
                        <?php }else{ ?>
                        <li class="gi"><p><?php echo priceFormat($item['price']);?> vnđ</p></li>
                        <li class="tt"><p><?php echo priceFormat($item['price']*$item['quanlity']);?> vnđ</p></li>
                        <?php $totalMoney += $item['price']*$item['quanlity'];?>
                        <?php } ?>
                    </ul>
                </li>
                <?php }#endforeach?>
                <li class="tongtien"><p>Tổng thành tiền:</p>
                    <span><?php echo priceFormat($totalMoney);?> VNĐ</span>
                </li>
                <?php } else {?>
                <p>Giỏ hàng hiện đang không có sản phẩm. Nhấp vào <a href="<?php echo base_url();?>">đây</a> để mua hàng.</p>
                <?php } ?>
